package com.jbl.ma.controller;


import com.jbl.commonutils.R;
import com.jbl.ma.entity.RepairDescribe;
import com.jbl.ma.service.RepairDescribeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author jbl
 * @since 2020-12-11
 */

@CrossOrigin
@RestController
@RequestMapping("/ma/repair-describe")
public class RepairDescribeController {
    @Autowired
    private RepairDescribeService repairDescribeService;

    @GetMapping("/list")
    @ApiOperation("获取维修类型列表")
    public R list() {
        List<RepairDescribe> list = repairDescribeService.list();
        return R.ok().data("repairTypeList", list);
    }
}

